package com.ruoyi.record.mapper;

import java.util.List;
import com.ruoyi.record.domain.RecordLeave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 请假记录Mapper接口
 * 
 * @author ruoyi
 * @date 2022-11-10
 */
@Repository
public interface RecordLeaveMapper extends BaseMapper<RecordLeave>
{

    /**
     * 查询请假记录列表
     * 
     * @param recordLeave 请假记录
     * @return 请假记录集合
     */
    public List<RecordLeave> selectRecordLeaveList(RecordLeave recordLeave);

    /**
     * 查询请假记录
     *
     * @param leaveId 请假记录主键
     * @return 请假记录
     */
    public RecordLeave selectRecordLeaveByLeaveId(Long leaveId);

    /**
     * 查询待审批请假列表
     *
     * @param recordLeave 请假记录
     * @return 请假记录集合
     */
    public List<RecordLeave> selectVerifyLeaveList(RecordLeave recordLeave);

    /**
     * 打印查询
     *
     * @param leaveId 请假记录主键
     * @return 请假记录
     */
    public RecordLeave selectRecordLeaveByPrint(Long leaveId);

}
